package com.smart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smart.common.PageInfo;
import com.smart.model.domain.QrCodeDO;
import com.smart.model.request.QrCodeRequest;
import com.smart.model.vo.QrCodeVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zhanghong
 */
public interface QrCodeService extends IService<QrCodeDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
     QrCodeVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfo<QrCodeVO> pageQuery(QrCodeRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<QrCodeVO> listQuery(QrCodeRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(QrCodeRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(QrCodeRequest request);
    /**
     * 根据主键删除
     * @param id
     * @return
     */
    Boolean deleteByKey(long id);

    Long qrCode(HttpServletRequest request, HttpServletResponse response, Boolean transfer, Long projectId, String address, Boolean addressType);
}
